package com.zy.teacherSide.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zy.teacherSide.service.ITeacherService;
import com.zy.teacherSide.dao.TeacherDao;
import com.zy.teacherSide.entity.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @author qu
 */
@Service
public class ITeacherServiceImpl extends ServiceImpl<TeacherDao, Teacher> implements ITeacherService {

    @Autowired
    private TeacherDao teacherDao;

    @Override
    public Teacher teacherLogin(Integer teacherNum, String teacherPassword) {
        return teacherDao.teacherLogin(teacherNum, teacherPassword);
    }

    @Override
    public Teacher getTeacherById(Integer teacherNum) {
        return teacherDao.getTeacherById(teacherNum);
    }

    @Override
    public Teacher getTeacherByTeacherId(Integer teacherId) {
        return teacherDao.getTeacherByTeacherId(teacherId);
    }

    @Override
    public Boolean updateTeacher(Integer shiro, Integer teacherId) {
        return teacherDao.updateTeacher(shiro, teacherId);
    }
}
